# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-base58
_pkgname=base58
pkgver=2.1.1
pkgrel=6
pkgdesc='Base58 and Base58Check implementation.'
arch=('any')
url='https://pypi.org/project/base58/'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('b62620cf19716a70acaef1d2361f11e4188661935b1c349a73e8f0757b7643807a0e0ff2f98c7a672fd24d8d5301352998b86953583e690fb687c66929632a54')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

